import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'



const routes:Array<RouteRecordRaw>=[
    {
        path:'/',
        name:'index',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/RoomTypeAdd',
        name:'RoomTypeAdd',
        component:()=>import('../views/RoomTypeAdd.vue')
    },
    {
        path:'/RoomNumAdd',
        name:'RoomNumAdd',
        component:()=>import('../views/RoomNumAdd.vue')
    },
    {
        path:'/RoomNumShow',
        name:'RoomNumShow',
        component:()=>import('../views/RoomNumShow.vue')
    },
    {
        path:'/RoomOrderAdd',
        name:'RoomOrderAdd',
        component:()=>import('../views/RoomOrderAdd.vue')
    },
    {
        path:'/RoomTypeShow',
        name:'RoomTypeShow',
        component:()=>import('../views/RoomTypeShow.vue')
    },
    {
        path:'/RoomTypeUpd/:id',
        name:'RoomTypeUpd',
        component:()=>import('../views/RoomTypeUpd.vue')
    },
]



const router=createRouter({
    history:createWebHistory(),
    routes
})

//导出路由
export default router